# from tkinter import *
# from tkinter import messagebox
# root = Tk()
# root.title("第一个GUI")
"""
 通过geometry("width x height+y+x")调整窗口大小
"""
# root.geometry("300x300+100+200")
"""
btn01 = Button(root)
btn01["text"] = "点我看看"
def dianwo(e):      #e是事件对象
    messagebox.showinfo("Message","送你花")
    print("送你花")
btn01.pack()
btn01.bind("<Button-1>",dianwo)     #绑定按键
"""

# root.mainloop()     #调用组件的mainloop(）方法，进入事件循环
#
# from tkinter import *
# from tkinter import messagebox
#
# root = Tk()
# root.title("jdwio")
# root.geometry("200x600+200+500")
# root.mainloop()
#
































